package cn.foodshopping.mapper;

import cn.foodshopping.domain.Goods;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsMapper {
    @Select("select *from tb_goods where type_id=#{typeid}")
    List<Goods> queryGoodsByType(Integer typeid);
    @Select("select *from tb_goods")
    List<Goods> queryGoodsAll();
    @Select("select *from tb_goods where id=#{id}")
    Goods queryGoodsById(Integer id);
}
